package com.aabte.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Daniel
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class OperationException extends Exception implements ErrorCode {

    private String code;

    public OperationException(String code) {
        this.code = code;
    }

    public OperationException(String code, String message) {
        super(message);
        this.code = code;
    }

    public OperationException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
